import { createI18n } from 'vue-i18n'
import zhCN from './zh-CN'
import en from './en'
import { useConfigStore } from '@/store/modules/config'

const messages = {
  'zh-CN': zhCN,
  'en': en
}

const i18n = createI18n({
  legacy: false,
  locale: 'zh-CN', // 默认语言，后续可以从store中获取
  messages
})

export default i18n